package org.kommii.common_utils;

import java.util.Random;

public class RandomInt_generator {
	
	public static Random random = new Random();
	
	/**
	 * 产生 i 范围以内的随机整数
	 */
	public static int generatorInt(int i){
		return random.nextInt(i);
	}
	
	public static void main(String[] args){
		for(int i=0;i<100;i++){
			int j = generatorInt(2);
			System.out.println(j);
		}
		
	}

}
